package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.ShowLineDao;
import com.zr.service.ShowLineService;

import net.sf.json.JSONObject;
@Service("showline")
public class ShowLineServiceImpl implements ShowLineService{
	
	@Resource
	private ShowLineDao showlinedao;
	
	@Override
	public JSONObject findLine(int page,int rows) {
		JSONObject j = new JSONObject();
		j.put("total", showlinedao.count());
		j.put("rows", showlinedao.findLine(page,rows));
		return j;
	}

}
